module Base
{
	item M16A2E4
    {
		DisplayCategory					=	Weapon,
		IconsForTexture					=	AR15_Flat_Gun,
        WeaponSpritesByIndex			=	K4B_Black_Model,
		ItemType                        =	base:weapon,	
		SubCategory                 	=	Firearm,	
		Ranged                      	=	true,	
		IsAimedFirearm              	=	true,	
		WeaponReloadType            	=	boltaction,	
		FireMode                    	=	BurstTNFP,	
		FireModePossibilities       	=	BurstTNFP/Single,	
		CyclicRateMultiplier			=	1.75,
		AttachmentType              	=	Rifle,	
		UseEndurance                	=	false,	
		TwoHandWeapon               	=	true,	
		RequiresEquippedBothHands   	=	true,
		MinSightRange					=	1.5,
		MaxSightRange					=	10,
		StopPower						=	2,
		OnCreate						=	TNFP_Attachments_OnGun.OnAttachPrototype,
				
		PiercingBullets             	=	true,
		CriticalChance              	=	40,
		CritDmgMultiplier            	=	4,
		AimingPerkCritModifier      	=	10,
		HitChance                   	=	50,	
		ToHitModifier               	=	1.5,
		AimingPerkHitChanceModifier 	=	10,
		JamGunChance                	=	0.2,
		MinRange                    	=	0.61,
		MaxRange                    	=	30,
		AimingPerkRangeModifier     	=	0,
		MinDamage                   	=	1.0,
		MaxDamage                   	=	1.6,

		MinAngle                     	=	0.965,
		AimingPerkMinAngleModifier  	=	0.01,
		ConditionMax                	=	10,	
		ConditionLowerChanceOneIn   	=	300,	
		MultipleHitConditionAffected	=	false,	
		
		Aimingtime                  	=	30,
		Reloadtime                  	=	25,	
		Swingtime                   	=	0.5,
		MinimumSwingtime            	=	0.5,
		SwingAmountBeforeImpact     	=	0,	
		RecoilDelay                 	=	5,		
		Weight                      	=	3.2,
					
		AmmoType                    	=	base:bullets_556,	
		AmmoBox                     	=	Base.556Box,	
		MaxAmmo                     	=	30,	
		MagazineType					=	Base.556Clip,
		Projectilecount             	=	1,	
		MaxHitcount                 	=	2,	
		SplatSize                   	=	3,	
		SplatNumber                 	=	3,	
		SplatBloodOnNoDeath         	=	true,	
		PushBackMod                 	=	0.3,	
		KnockBackOnNoDeath          	=	true,	
		KnockdownMod                	=	3,	
		DoorDamage                  	=	20,	
				
		RunAnim                     	=	Run_Weapon2,	
		IdleAnim                    	=	Idle_Weapon2,	
		SwingAnim                   	=	Rifle,	
		MetalValue                  	=	45,	
		SoundVolume                 	=	35,	
		SoundRadius                 	=	150,	
		SoundGain                   	=	2,	
		NPCSoundBoost               	=	1.5,	
		BringToBearSound		        =	M16BringToBear,
		SwingSound      		        =	M16Shoot,
		HitSound            		    =	BulletImpact,
		ClickSound         		        =	M16Jam,
		BreakSound       		        =	M16Break,
		EquipSound       		        =	M16Equip,
		UnequipSound     		        =	M16UnEquip,
		InsertAmmoSound  		        =	M16InsertAmmo,
		EjectAmmoSound  		        =	M16EjectAmmo,
		InsertAmmoStartSound		    =	M16InsertAmmoStart,
		InsertAmmoStopSound		        =	M16InsertAmmoStop,
		EjectAmmoStartSound		        =	M16EjectAmmoStart,
		EjectAmmoStopSound		        =	M16EjectAmmoStop,
		ShellFallSound    		        =	M16CartridgeFall,
		RackSound        		        =	M16Rack,
		ImpactSound                 		    =	null,
		Tags                            =   base:hasmetal;base:firearm,
		Tooltip							=	Tooltip_item_M16A2E4,

		ModelWeaponPart = IronSight IronSight scope2 scope2,
		ModelWeaponPart = Laser Laser laser laser,
		ModelWeaponPart = RecoilPad RecoilPad recoilpad recoilpad,
		ModelWeaponPart = RedDot RedDot reddot reddot,
		ModelWeaponPart = x2Scope x2Scope scope scope,
		ModelWeaponPart = x4Scope x4Scope scope2 scope2,
		ModelWeaponPart = x8Scope x8Scope scope2 scope2,
		ModelWeaponPart = x4ScopeColt x4ScopeColt_Model scopeColt scopeColt,
		ModelWeaponPart = RedDot RedDot reddot reddot,
		ModelWeaponPart = Bayonnet Bayonnet bayonnet bayonnet,
		ModelWeaponPart = GunLight GunLightRifle gunlight gunlight,
		ModelWeaponPart = M4A1Foregrip M4A1Foregrip Bipod Bipod,
		ModelWeaponPart = SR25Bipod SR25Bipod Bipod Bipod,
		ModelWeaponPart = ACOG ACOG scopeACOG scopeACOG,
		ModelWeaponPart = SR25Scope SR25Scope scope scope,
		ModelWeaponPart = M4A1CarryHandle M4A1CarryHandle carryhandle carryhandle,
		ModelWeaponPart = M4A1IronSights M4IronSights ironsights ironsights,
    
		
		MuzzleFlashModelKey             =	muzzle_flash_assault_rifle,
		AimReleaseSound                 =	M16AimRelease,
		DropSound                       =	M16Drop,
	}

	item M16A2E3
    {
		DisplayCategory					=	Weapon,
		IconsForTexture					=	AR15_Flat_Gun,
        WeaponSpritesByIndex			=	K4B_Black_Model,
		ItemType                        =	base:weapon,	
		SubCategory                 	=	Firearm,	
		Ranged                      	=	true,	
		IsAimedFirearm              	=	true,	
		WeaponReloadType            	=	boltaction,	
		FireMode                    	=	Auto,	
		FireModePossibilities       	=	Auto/Single,	
		CyclicRateMultiplier			=	1.75,
		AttachmentType              	=	Rifle,	
		UseEndurance                	=	false,	
		TwoHandWeapon               	=	true,	
		RequiresEquippedBothHands   	=	true,
		MinSightRange					=	1.5,
		MaxSightRange					=	10,
		StopPower						=	2,
		OnCreate						=	TNFP_Attachments_OnGun.OnAttachPrototype,
				
		PiercingBullets             	=	true,
		CriticalChance              	=	40,
		CritDmgMultiplier            	=	4,
		AimingPerkCritModifier      	=	10,
		HitChance                   	=	50,	
		ToHitModifier               	=	1.5,
		AimingPerkHitChanceModifier 	=	10,
		JamGunChance                	=	0.2,
		MinRange                    	=	0.61,
		MaxRange                    	=	30,
		AimingPerkRangeModifier     	=	0,
		MinDamage                   	=	1.0,
		MaxDamage                   	=	1.6,

		MinAngle                     	=	0.965,
		AimingPerkMinAngleModifier  	=	0.01,
		ConditionMax                	=	10,	
		ConditionLowerChanceOneIn   	=	300,	
		MultipleHitConditionAffected	=	false,	
		
		Aimingtime                  	=	30,
		Reloadtime                  	=	25,	
		Swingtime                   	=	0.5,
		MinimumSwingtime            	=	0.5,
		SwingAmountBeforeImpact     	=	0,	
		RecoilDelay                 	=	5,		
		Weight                      	=	3.2,
					
		AmmoType                    	=	base:bullets_556,	
		AmmoBox                     	=	Base.556Box,	
		MaxAmmo                     	=	30,	
		MagazineType					=	Base.556Clip,
		Projectilecount             	=	1,	
		MaxHitcount                 	=	2,	
		SplatSize                   	=	3,	
		SplatNumber                 	=	3,	
		SplatBloodOnNoDeath         	=	true,	
		PushBackMod                 	=	0.3,	
		KnockBackOnNoDeath          	=	true,	
		KnockdownMod                	=	3,	
		DoorDamage                  	=	20,	
				
		RunAnim                     	=	Run_Weapon2,	
		IdleAnim                    	=	Idle_Weapon2,	
		SwingAnim                   	=	Rifle,	
		MetalValue                  	=	45,	
		SoundVolume                 	=	35,	
		SoundRadius                 	=	150,	
		SoundGain                   	=	2,	
		NPCSoundBoost               	=	1.5,	
		BringToBearSound		        =	M16BringToBear,
		SwingSound      		        =	M16Shoot,
		HitSound            		    =	BulletImpact,
		ClickSound         		        =	M16Jam,
		BreakSound       		        =	M16Break,
		EquipSound       		        =	M16Equip,
		UnequipSound     		        =	M16UnEquip,
		InsertAmmoSound  		        =	M16InsertAmmo,
		EjectAmmoSound  		        =	M16EjectAmmo,
		InsertAmmoStartSound		    =	M16InsertAmmoStart,
		InsertAmmoStopSound		        =	M16InsertAmmoStop,
		EjectAmmoStartSound		        =	M16EjectAmmoStart,
		EjectAmmoStopSound		        =	M16EjectAmmoStop,
		ShellFallSound    		        =	M16CartridgeFall,
		RackSound        		        =	M16Rack,
		ImpactSound                 		    =	null,
		Tags                            =   base:hasmetal;base:firearm,
		Tooltip							=	Tooltip_item_M16A2E4,

		ModelWeaponPart = IronSight IronSight scope2 scope2,
		ModelWeaponPart = Laser Laser laser laser,
		ModelWeaponPart = RecoilPad RecoilPad recoilpad recoilpad,
		ModelWeaponPart = RedDot RedDot reddot reddot,
		ModelWeaponPart = x2Scope x2Scope scope scope,
		ModelWeaponPart = x4Scope x4Scope scope2 scope2,
		ModelWeaponPart = x8Scope x8Scope scope2 scope2,
		ModelWeaponPart = x4ScopeColt x4ScopeColt_Model scopeColt scopeColt,
		ModelWeaponPart = RedDot RedDot reddot reddot,
		ModelWeaponPart = Bayonnet Bayonnet bayonnet bayonnet,
		ModelWeaponPart = GunLight GunLightRifle gunlight gunlight,
		ModelWeaponPart = M4A1Foregrip M4A1Foregrip Bipod Bipod,
		ModelWeaponPart = SR25Bipod SR25Bipod Bipod Bipod,
		ModelWeaponPart = ACOG ACOG scopeACOG scopeACOG,
		ModelWeaponPart = SR25Scope SR25Scope scope scope,
		ModelWeaponPart = M4A1CarryHandle M4A1CarryHandle carryhandle carryhandle,
		ModelWeaponPart = M4A1IronSights M4IronSights ironsights ironsights,
    
		
		MuzzleFlashModelKey             =	muzzle_flash_assault_rifle,
		AimReleaseSound                 =	M16AimRelease,
		DropSound                       =	M16Drop,
	}


	item M4A1SOPMOD	
	{				
		DisplayCategory					=	Weapon,
		Icon							=	M4A1,
		WeaponSprite                	=	M4A1SOPMOD,	
		ItemType                        	=	base:weapon,	
		SubCategory                 	=	Firearm,	
		Ranged                      	=	true,	
		IsAimedFirearm              	=	true,	
		WeaponReloadType            	=	boltaction,	
		FireMode                    	=	Auto,	
		FireModePossibilities       	=	Auto/Single,	
		CyclicRateMultiplier			=	1.75,
		AttachmentType              	=	Rifle,	
		UseEndurance                	=	false,	
		TwoHandWeapon               	=	true,	
		RequiresEquippedBothHands   	=	true,
		MinSightRange					=	1.5,
		MaxSightRange					=	10,
		StopPower						=	2,
		OnCreate						=	TNFP_Attachments_OnGun.OnAttachPrototype,
				
		PiercingBullets             	=	true,
		CriticalChance              	=	45,
		CritDmgMultiplier            	=	5,
		AimingPerkCritModifier      	=	6,
		HitChance                   	=	50,	
		ToHitModifier               	=	1.5,
		AimingPerkHitChanceModifier 	=	10,
		JamGunChance                	=	0.1,
		MinRange                    	=	0.33,
		MaxRange                    	=	30,
		AimingPerkRangeModifier     	=	0,
		MinDamage                   	=	1.0,
		MaxDamage                   	=	1.6,

		MinAngle                     	=	0.965,
		AimingPerkMinAngleModifier  	=	0.01,
		ConditionMax                	=	10,	
		ConditionLowerChanceOneIn   	=	230,	
		MultipleHitConditionAffected	=	false,	
		
		Aimingtime                  	=	17,
		Reloadtime                  	=	25,	
		Swingtime                   	=	0.5,
		MinimumSwingtime            	=	0.5,
		SwingAmountBeforeImpact     	=	0,	
		RecoilDelay                 	=	5,
		Weight                      	=	2.8,
					
		AmmoType                    	=	base:bullets_556,	
		AmmoBox                     	=	Base.556Box,	
		MaxAmmo                     	=	30,	
		MagazineType					=	Base.556Clip,
		Projectilecount             	=	1,	
		MaxHitcount                 	=	2,	
		SplatSize                   	=	3,	
		SplatNumber                 	=	3,	
		SplatBloodOnNoDeath         	=	true,	
		PushBackMod                 	=	0.3,	
		KnockBackOnNoDeath          	=	true,	
		KnockdownMod                	=	3,	
		DoorDamage                  	=	20,	
				
		RunAnim                     	=	Run_Weapon2,	
		IdleAnim                    	=	Idle_Weapon2,	
		SwingAnim                   	=	Rifle,	
		MetalValue                  	=	45,	
		SoundVolume                 	=	35,	
		SoundRadius                 	=	150,	
		SoundGain                   	=	2,	
		NPCSoundBoost               	=	1.5,	
		BringToBearSound		        =	M16BringToBear,
		SwingSound      		        =	M16Shoot,
		HitSound            		    =	BulletImpact,
		ClickSound         		        =	M16Jam,
		BreakSound       		        =	M16Break,
		EquipSound       		        =	M16Equip,
		UnequipSound     		        =	M16UnEquip,
		InsertAmmoSound  		        =	M16InsertAmmo,
		EjectAmmoSound  		        =	M16EjectAmmo,
		InsertAmmoStartSound		    =	M16InsertAmmoStart,
		InsertAmmoStopSound		        =	M16InsertAmmoStop,
		EjectAmmoStartSound		        =	M16EjectAmmoStart,
		EjectAmmoStopSound		        =	M16EjectAmmoStop,
		ShellFallSound    		        =	M16CartridgeFall,
		RackSound        		        =	M16Rack,
		ImpactSound                 	=	null,
		Tags                            =   base:hasmetal;base:firearm,
		Tooltip							=	Tooltip_item_M4SOPMOD,

		ModelWeaponPart = IronSight IronSight scope2 scope2,
		ModelWeaponPart = Laser Laser laser laser,
		ModelWeaponPart = RecoilPad RecoilPad recoilpad recoilpad,
		ModelWeaponPart = RedDot RedDot reddot reddot,
		ModelWeaponPart = x2Scope x2Scope scope scope,
		ModelWeaponPart = x4Scope x4Scope scope2 scope2,
		ModelWeaponPart = x8Scope x8Scope scope2 scope2,
		ModelWeaponPart = x4ScopeColt x4ScopeColt_Model scopeColt scopeColt,
		ModelWeaponPart = RedDot RedDot reddot reddot,
		ModelWeaponPart = Bayonnet Bayonnet bayonnet bayonnet,
		ModelWeaponPart = GunLight GunLightRifle gunlight gunlight,
		ModelWeaponPart = M4A1Foregrip M4A1Foregrip Bipod Bipod,
		ModelWeaponPart = SR25Bipod SR25Bipod Bipod Bipod,
		ModelWeaponPart = ACOG ACOG scopeACOG scopeACOG,
		ModelWeaponPart = SR25Scope SR25Scope scope scope,
		ModelWeaponPart = M4A1CarryHandle M4A1CarryHandle carryhandle carryhandle,
		ModelWeaponPart = M4A1IronSights M4IronSights ironsights ironsights,
		
		MuzzleFlashModelKey             =	muzzle_flash_assault_rifle,
		AimReleaseSound                 =	M16AimRelease,
		DropSound                       =	M16Drop,
	}
	model M4A1SOPMOD
    {
        mesh = weapons/firearms/M4A1,
        texture = weapons/firearms/M4A1,

        attachment muzzle
        {
            offset = 0.0010 0.4279 0.0223,
            rotate = -90.0000 0.0000 -180.0000,
        }

        attachment scope
        {
            offset = -0.0050 0.0753 0.0551,
            rotate = 0.0000 0.0000 0.0000,
        }

        attachment scope2
        {
            offset = 0.0000 0.0842 0.0687,
            rotate = 0.0000 0.0000 0.0000,
        }

        attachment scopeColt
        {
            offset = 0.0000 0.0811 0.0652,
            rotate = 0.0000 0.0000 0.0000,
        }

		attachment scopeACOG
        {
            offset = 0.0000 0.0811 0.0652,
            rotate = 0.0000 0.0000 0.0000,
        }

        attachment carryhandle
        {
            offset = -0.0050 0.0661 0.0425,
            rotate = 0.0000 0.0000 0.0000,
        }

        attachment ironsights
        {
            offset = 0.0003 0.0470 0.0487,
            rotate = 0.0000 0.0000 0.0000,
        }

        attachment recoilpad
        {
            offset = 0.0000 -0.1661 -0.0009,
            rotate = 0.0000 0.0000 0.0000,
        }

        attachment reddot
        {
            offset = 0.0010 0.0725 0.0659,
            rotate = -0.0000 -3.4804 -0.0000,
        }

        attachment laser
        {
            offset = 0.0000 0.2150 0.0466,
            rotate = 0.0000 2.0914 0.0000,
        }

        attachment world
        {
            offset = -0.0217 -0.0000 -0.0026,
            rotate = 0.0000 -6.8957 0.0000,
        }

        attachment gunlight
        {
            offset = 0.0000 0.3415 -0.0071,
            rotate = 0.0000 2.0914 0.0000,
        }

        attachment Bipod
        {
            offset = 0.0000 0.2297 -0.0044,
            rotate = -0.1015 0.0000 0.0000,
        }
    }
	item MK23
	{
		DisplayCategory             	=	Weapon,
		Icon                        	=	MK23_2,
		WeaponSprite                	=	MK23,
		ItemType                    	=	base:weapon,
		SubCategory                 	=	Firearm,
		Ranged                      	=	true,
		IsAimedFirearm              	=	true,
		WeaponReloadType            	=	handgun,
		FireMode                    	=	Single,
		FireModePossibilities       	=	Single,
		AttachmentType              	=	Holster,
		UseEndurance                	=	false,

		MinDamage                   	=	1.0,
		MaxDamage                   	=	1.4,
		CriticalChance              	=	25,
		CritDmgMultiplier           	=	6,
		AimingPerkCritModifier      	=	10,
		MinRange                    	=	0.61,
		MaxRange                    	=	17,
		HitChance                   	=	50,
		ToHitModifier               	=	1.5,
		AimingPerkHitChanceModifier 	=	6,
		AimingPerkRangeModifier     	=	0,
		JamGunChance                	=	0.2,
		StopPower                   	=	10,
		OnCreate						=	TNFP_Attachments_OnGun.OnAttachPrototypeMK23,

		MinAngle                    	=	0.95,
		AimingPerkMinAngleModifier  	=	0.05,
		ConditionMax                	=	15,
		ConditionLowerChanceOneIn   	=	400,
		MultipleHitConditionAffected	=	false,
		Aimingtime                  	=	25,
		Reloadtime                  	=	30,
		Swingtime                   	=	0.5,
		MinimumSwingtime            	=	0.5,
		SwingAmountBeforeImpact     	=	0.0,
		RecoilDelay                 	=	5,
		Weight                      	=	1.2,

		AmmoType                    	=	base:bullets_45,
		AmmoBox                     	=	Base.Bullets45Box,
		MagazineType                	=	Base.MK23Clip,
		MaxAmmo                     	=	12,
		ClipSize                    	=	12,
		Projectilecount             	=	1,
		MaxHitcount                 	=	1,
		SplatSize                   	=	3,
		SplatNumber                 	=	3,
		SplatBloodOnNoDeath         	=	true,
		PushBackMod                 	=	0.3,
		KnockBackOnNoDeath          	=	true,
		KnockdownMod                	=	2,
		DoorDamage                  	=	5,

		RunAnim                     	=	Run_Weapon2,
		SwingAnim                   	=	Handgun,
		MetalValue                  	=	30,
		SoundVolume                 	=	50,
		SoundRadius                 	=	70,
		SoundGain                   	=	1.5,
		NPCSoundBoost               	=	1.5,
		BringToBearSound            	=	M1911BringToBear,
		SwingSound                  	=	M1911Shoot,
		HitSound                    	=	BulletImpact,
		ClickSound                  	=	M1911Jam,
		BreakSound                  	=	M1911Break,
		EquipSound                  	=	M1911Equip,
		UnequipSound                	=	M1911UnEquip,
		InsertAmmoSound             	=	M1911InsertAmmo,
		EjectAmmoSound              	=	M1911EjectAmmo,
		InsertAmmoStartSound        	=	M1911InsertAmmoStart,
		InsertAmmoStopSound         	=	M1911InsertAmmoStop,
		EjectAmmoStartSound         	=	M1911EjectAmmoStart,
		EjectAmmoStopSound          	=	M1911EjectAmmoStop,
		ShellFallSound              	=	M1911CartridgeFall,
		RackSound                   	=	M1911Rack,
		ImpactSound                 	=	null,
		Tags                        	=	base:hasmetal;base:firearm,

		ModelWeaponPart = MK23LAM MK23LAM handgunLaser handgunLaser,

		
		MinSightRange               	=	1,
		MaxSightRange               	=	6,
		MuzzleFlashModelKey         	=	muzzle_flash_handgun02,
		AimReleaseSound             	=	M1911AimRelease,
		DropSound                   	=	M1911Drop,
	}
	model MK23
    {
        mesh = weapons/firearms/MK23,
        texture = weapons/firearms/MK23_tex,

        attachment muzzle
        {
            offset = 0.0000 0.1566 -0.0145,
            rotate = -90.0000 -0.0000 180.0000,
        }

        attachment world
        {
            offset = 0.0200 0.1300 0.0000,
            rotate = 180.0000 0.0000 180.0000,
        }

        attachment scope
        {
            offset = 0.0020 -0.0510 0.1120,
            rotate = 180.0000 0.0000 0.0000,
        }

        attachment handgunLaser
        {
            offset = -0.0024 0.1102 0.0298,
            rotate = -179.8785 0.0000 -180.0000,
        }

        attachment gunlight
        {
            offset = 0.0000 0.0937 0.0132,
            rotate = 179.9580 0.2796 -179.9953,
        }

        attachment Bip01_Prop2
        {
            offset = -0.0257 0.0228 -0.0007,
            rotate = 91.5108 7.7486 -91.5886,
        }
    }
	item MK23Clip
	{
		DisplayCategory             	=	Ammo,
		Icon                        	=	M1911_MAGAZINE,
		ItemType                    	=	base:normal,
		Weight                      	=	0.2,
		AmmoType                    	=	base:bullets_45,
		CanStack                    	=	false,
		GunType                     	=	Base.Pistol2,
		MaxAmmo                     	=	12,
		StaticModel                 	=	PistolMagGen,
		WorldStaticModel            	=	PistolMagGen,
		Tags                        	=	base:hasmetal;base:pistolmagazine,
	}
}
